import { $get, $put } from '@js/request'

export async function getDataRequest (caseid) {
  const res = await $get('/api/xapc/xd/imessage/getCaseFriendship', { caseid })
  return res.data
}

export async function readRequest (caseid, senderid) {
  const res = await $put('/api/xapc/xd/imessage/readMessage', {
    caseid,
    senderid
  })
  return res.data
}
